package com.sanyang.lawyer.service.client;

import com.sanyang.lawyer.entity.Client_type;
import com.sanyang.lawyer.mapper.client.ClientMapper;
import com.sanyang.lawyer.mapper.client.Client_typeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClientTypeService {
    

    @Autowired
    private Client_typeMapper typeMapper;

    //查询所有的客户类型
    public List<Client_type> listall(){
        return typeMapper.listall();
    }
    
    //通过客户类型编号查询出指定类型
    public Client_type getbyid(int typeid){
        return typeMapper.getbyid(typeid);
    }
    
    
}
